home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Sun Solutions 1997 April to September
/
Sun Solutions CD - APR '97 - SEP '97 (704-3778-12 Rev. H)(Sun Microsystems, Inc.)(1997).iso
/
products
/
Hyperion
/
src
/
Makefile
< prev
next >
Wrap
Makefile
|
1997-02-26
|
4KB
|
121 lines
# @(#)Makefile 1.57 4/8/94
# Uncomment the following if you're compiling on Solaris 2.x.
#SOL2 = -DSYSV
# Set these to the locations of your XView include files and libraries.
INCDIR = $(OPENWINHOME)/include
LIBDIR = $(OPENWINHOME)/lib
# If your linker supports the -R flag to set a default location for
# shared libraries (e.g. Solaris 2.x), uncomment this line.
#LIBLOC = -R$(LIBDIR)
# If you need any extra libraries, put them here. Uncomment -lsocket for
# Solaris 2.x.
#EXTRA_LIBS = -lsocket
# Set these to the directory names in which to install the software and
# help files.
BINDIR = $(OPENWINHOME)/bin
HLPDIR = $(OPENWINHOME)/lib/help
# Set this to the directory containing manual pages. Manual pages will only
# be installed if you "make install.man".
MANDIR = $(OPENWINHOME)/man
# Set these to the manual sections (e.g. 1, 4, 5, l) for the program and
# database file manual pages, respectively.
PEXT = 1
DEXT = 5
# And don't worry about anything from this line on.
############################################################################
# Parameters.
PROGRAM = workman
SOURCES.c = workman_stubs.c database.c cdinfo.c display.c setup.c scsi.c \
ui_cdinfo.c plat_sun.c plat_hpux.c plat_linux.c plat_news.c \
plat_bsd386.c plat_ultrix.c cdrom.c drv_toshiba.c drv_sony.c \
plat_svr4.c plat_freebsd.c plat_osf1.c
SOURCES.h = struct.h workman_ui.h
OBJECTS = \
$(SOURCES.c:%.c=%.o)
# Compiler flags.
CFLAGS = -O
CPPFLAGS = -I$(INCDIR) $(SOL2)
LDFLAGS = -L$(LIBDIR) $(LIBLOC)
LDLIBS = -lxview -lolgx -lX11 $(EXTRA_LIBS) -ldl
CC = cc
# Standard targets.
all: $(PROGRAM) $(PROGRAM).doc workmandb.doc
$(PROGRAM): $(SOURCES.c) $(OBJECTS)
$(CC) $(LDFLAGS) -o $@ $(OBJECTS) $(LDLIBS)
clean:
$(RM) $(OBJECTS) *.BAK *.delta core
install: $(PROGRAM)
cp $(PROGRAM) $(BINDIR)
chmod 755 $(BINDIR)/$(PROGRAM)
cp $(PROGRAM).info $(HLPDIR)
chmod 644 $(HLPDIR)/$(PROGRAM).info
install.man: workman.man workmandb.man $(MANDIR)/man$(PEXT) $(MANDIR)/man$(DEXT)
cp workman.man $(MANDIR)/man$(PEXT)/workman.$(PEXT)
chmod 644 $(MANDIR)/man$(PEXT)/workman.$(PEXT)
cp workmandb.man $(MANDIR)/man$(DEXT)/workmandb.$(DEXT)
chmod 644 $(MANDIR)/man$(DEXT)/workmandb.$(DEXT)
display.o: display.c workman_ui.h
setup.o: setup.c workman_ui.h
workman_stubs.o: workman_stubs.c workman_ui.h
ui_cdinfo.o: ui_cdinfo.c workman_ui.h
# This next one isn't completely true, but close enough
$(OBJECTS): struct.h
$(PROGRAM).doc: $(PROGRAM).man
nroff -man $(PROGRAM).man > $(PROGRAM).doc
workmandb.doc: workmandb.man
nroff -man workmandb.man > workmandb.doc
#
# These targets are for building the shar distribution.
#
shar: part01
tar: WorkMan.tar
ALLSOURCES= README README.ultrix README.hpux README.linux ANSWERS INSTALLATION \
to-do $(SOURCES.h) README.solaris2 README.sony README.svr4 PORTING \
$(PROGRAM).man $(PROGRAM).doc $(SOURCES.c) workmandb.man workmandb.doc \
CHANGELOG bitmaps Makefile.svr4 README.bsd386 README.FreeBSD \
$(PROGRAM).info Makefile Makefile.hpux Makefile.linux Imakefile \
WorkMan.tmpl README.osf1 Makefile.osf1
ALLFILES= $(ALLSOURCES) \
bitmaps/loud.icon bitmaps/loud0.icon \
bitmaps/loud1.icon bitmaps/loud2.icon bitmaps/loud3.icon \
bitmaps/loud4.icon bitmaps/loud5.icon bitmaps/loud6.icon \
bitmaps/phones bitmaps/phones0 bitmaps/phonesl1 bitmaps/phonesl2 \
bitmaps/phonesl3 bitmaps/phonesr1 bitmaps/phonesr2 bitmaps/phonesr3 \
bitmaps/sink0 bitmaps/sink1 bitmaps/sink2 bitmaps/sink3 \
bitmaps/sink4 bitmaps/sink5 bitmaps/sink6 bitmaps/sink7 \
bitmaps/eject.button bitmaps/ff.button \
bitmaps/eject.button.small bitmaps/ff.button.small \
bitmaps/icon bitmaps/iconmask bitmaps/pause.button \
bitmaps/pause.button.small bitmaps/play.button.small \
bitmaps/rew.button.small bitmaps/stop.button.small \
bitmaps/play.button bitmaps/rew.button bitmaps/stop.button
part01: $(ALLFILES)
makekit -s 50k -n part $(ALLFILES)
WorkMan.tar: $(ALLSOURCES)
(cd ..; tar cvFf workman/WorkMan.tar `(for i in $(ALLSOURCES); do \
echo $$i; done) | sed 's@^@workman/@' | sort`)